<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/14
 * Time: 下午4:51
 */

namespace app\index\controller;


use app\index\model\Company;
use app\index\model\News;
use app\index\model\Quota;
use app\index\model\SupCategory;
use app\index\service\CategoryService;

use app\index\service\CompanyService;
use app\index\service\ConsultService;
use app\index\service\NewsService;
use app\index\service\QuotaService;
use app\index\service\StandardService;
use app\index\service\UrlService;
use app\index\utils\ResultUtil;
use think\App;
use think\Controller;


class Category extends BaseController
{

    public function getCategoyrDetail($id)
    {
        $this->assign("id",$id);

        return $this->fetch("companyList",["id"=>$id]);
    }
    public function getAllCategoryList(){
//        $data = StandardService::getStandardDetailById(3,61);
//        $data =  $_SERVER['HTTP_HOST'];
        $data  = NewsService::getNewsList(1);
        //$data  = NewsService::getHotNewsList();
        //$data = NewsService::getSubCategorysByNews();
//        $data = News::getAll();
        return ResultUtil::success($data);
//        return '';

    }
}